<?php

class zdRelationComponents extends sfComponents {
	
	public function executeShow_gallery() {

		$root = MaterialPeer::retrieveByPK($this->mat_id);
		$c = new Criteria();
		$c->setLimit(5);
		$c->addDescendingOrderByColumn(Material2MaterialPeer::TO_ID);
		$this->mat = $root->getMaterial2MaterialsRelatedByFromId($c);
		
	}
	
	
}
?>